const userStore = {
	namespaced: true,
	state: () => {
		return {
			loadingstate: 0,
			//目标检测选择类别
			category: [],
			resultInfo: [
				{
					stepIndex: 0,
					resultBase64Url: '',
					resultState: false,
					loadState: false,
					isValidation: false,
					base64Urls: [],
				},
				{
					stepIndex: 0,
					resultBase64Url: [],
					resultState: false,
					loadState: false,
					isValidation: false,
					base64Urls: [],
				},
				{
					stepIndex: 0,
					resultBase64Url: [],
					resultState: false,
					loadState: false,
					isValidation: false,
					base64Urls: [],
				},
				{
					stepIndex: 0,
					resultBase64Url: [],
					resultState: false,
					loadState: false,
					isValidation: false,
					base64Urls: [],
				},
			],
			tips: [
				'*请上传两张格式为jpg、jpeg或png格式的图片，单张大小不超过10mb',
				'*可上传多张格式为jpg、jpeg或png格式的图片，单张大小不超过10mb',
			],
			leftbarlist: [
				{
					category: '变化检测',
					lroute: '/changeDetection',
					eng: 'Change Detection',
				},
				{
					category: '目标检测',
					lroute: '/targetDetection',
					eng: 'Target Detection',
				},
				{
					category: '目标提取',
					lroute: '/objectiveExtraction',
					eng: 'Objective Extraction',
				},
				{
					category: '地物分类',
					lroute: '/geophysicalClassification',
					eng: 'Geophysical Classification',
				},
			],
		}
	},
	mutations: {
		changeLoadingState: (state, params) => {
			state.loadingstate = params
		},
	},
	getters: {
		getTip(state) {
			return state.tips
		},
	},
	actions: {},
}

export default userStore
